<?php

use yii\db\Migration;
use yii\db\Schema;

class m170606_062715_add_column_openId extends Migration
{
    public function up()
    {
         $this->addColumn('{{member}}', 'openId', Schema::TYPE_STRING. "(64) null COMMENT '用户微信openId' ");

    }

    public function down()
    {
        echo "m170606_062715_add_column_openId cannot be reverted.\n";

        return false;
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
